<?php

require_once '../include/common.inc.php';

if (!checkAdmin()) {
  header("LOCATION:index.php");
   exit;
}

$menu_index = 3;
$page_title = 'TABLA';
$guide_message = 'Product | News | Enquiry';


getMyParam('cid');
$sql="select * from med_news where id=$cid";
$query = $db->query($sql);
$rs = $db->fetch_array($query);

$rs['date']=date('Y-m-d',$rs['date']);
$rs['online_date']=date('Y-m-d',$rs['online_date']);
$rs['offline_date']=date('Y-m-d',$rs['offline_date']);

if($rs['pic']!="")$rs['pic']="<img src='../pictures/news/{$rs['pic']}' />";

if($rs['publish']==1)$rs['publish']='Yes';
else $rs['publish']="No";

include_once('menu_list.php');
require_once PrintEot('a_header');
require_once PrintEot('a_m_news_enq');
require_once PrintEot('a_footer');

?>
